#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>



int JiaoHuan(int* a, int* b)
{
	int c = *a;
	*a = *b;
	*b = c;
	return(*a, *b);
}



int main()
{
	int a, b;
	scanf("%d %d", &a,&b);
	JiaoHuan(&a, &b);
	printf("%d %d",a,b);

}